import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User, UserSchema } from './schemas/user.schema';
import { MongooseModule } from '@nestjs/mongoose';
import { UserFocus, UserFocusSchema } from './schemas/userFocus.schema';
import { UserFocusPhotos, UserFocusPhotosSchema } from './schemas/userFocusPhotos.schema';
import { UserFocusPhotosService } from './userFocusPhotos.service';
import { UserFocusPhotosController } from './userFocusPhotos.controller';
import { UserFocusController } from './userFocus.controller';
import { UserFocusService } from './userFocus.service';
import { Photos, PhotosSchema } from '@api/photos/schemas/photos.schema';
import { PhotosProfile, PhotosProfileSchema } from '@api/photos/schemas/photosProfile.schema';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: Photos.name, schema: PhotosSchema },
            { name: User.name, schema: UserSchema },
            { name: UserFocus.name, schema: UserFocusSchema },
            { name: UserFocusPhotos.name, schema: UserFocusPhotosSchema },
            { name: PhotosProfile.name, schema: PhotosProfileSchema },
        ]),
    ],
    controllers: [UserController, UserFocusController, UserFocusPhotosController],
    providers: [UserService, UserFocusService, UserFocusPhotosService],
    exports: [UserService],
})
export class UserModule {}
